package galaxy.app.network.http.server;

import galaxy.kernel.component.AbstractECSComponent;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;

public class HttpServerComponent extends AbstractECSComponent {
    public final EventLoopGroup bossGroup = new NioEventLoopGroup(1);
    public final EventLoopGroup workerGroup = new NioEventLoopGroup(4);
    public int port = 0;
    public String secretKey = null;

    /**
     * 向内部提供HTTP服务的最大内容长度（默认：1048576=1M）
     */
    public int maxContentLength = 1048576;

    public HttpServerHandler handler;
}
